<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8"/>
</head>
<body>
<h1>管理员页面</h1>
<p>点击 <a th:href="@{/}">这里</a> 返回首页</p>
<div class="container">
    <div class="starter-template">
        <div sec:authorize="hasAnyAuthority('sys-user-mgr-add')">
            <p><a th:href="@{/adminAdd}">新增管理员</a></p>
        </div>
        <div sec:authorize="hasAnyRole('ROLE_ADMIN')">
            <p class="bg-info" th:text="${extraInfo}"></p>
        </div>
        <form th:action="@{/logout}" method="post">
            <input type="submit" class="btn btn-primary" value="注销"/>
        </form>
    </div>
</div>
</body>
</html>